<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use TechOnline\Laravel\Dao\ModelUtil;

class Default19031502 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        ModelUtil::insert('super_page', [
            'url' => '/',
            'title' => '首页',
            'keywords' => '首页',
            'description' => '首页',
        ]);

        ModelUtil::insert('nav', ['type' => 'head', 'title' => '首页', 'sort' => 1, 'url' => '/']);
        ModelUtil::insert('nav', ['type' => 'head', 'title' => '产品', 'sort' => 2, 'url' => '/product']);
        ModelUtil::insert('nav', ['type' => 'head', 'title' => '案例', 'sort' => 3, 'url' => '/case']);
        ModelUtil::insert('nav', ['type' => 'head', 'title' => '新闻', 'sort' => 4, 'url' => '/news']);
        ModelUtil::insert('nav', ['type' => 'head', 'title' => '联系', 'sort' => 5, 'url' => '/contact']);
        ModelUtil::insert('nav', ['type' => 'head', 'title' => '关于', 'sort' => 6, 'url' => '/about']);
        ModelUtil::insert('nav', ['type' => 'head', 'title' => '招聘', 'sort' => 7, 'url' => '/job']);

        ModelUtil::insert('nav', ['type' => 'foot', 'title' => '首页', 'sort' => 1, 'url' => '/']);
        ModelUtil::insert('nav', ['type' => 'foot', 'title' => '产品', 'sort' => 2, 'url' => '/product']);
        ModelUtil::insert('nav', ['type' => 'foot', 'title' => '案例', 'sort' => 3, 'url' => '/case']);
        ModelUtil::insert('nav', ['type' => 'foot', 'title' => '新闻', 'sort' => 4, 'url' => '/news']);
        ModelUtil::insert('nav', ['type' => 'foot', 'title' => '联系', 'sort' => 5, 'url' => '/contact']);
        ModelUtil::insert('nav', ['type' => 'foot', 'title' => '关于', 'sort' => 6, 'url' => '/about']);
        ModelUtil::insert('nav', ['type' => 'foot', 'title' => '招聘', 'sort' => 7, 'url' => '/job']);

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
}
